<script type="text/javascript">
	$(document).ready(function() {
		pool.validate();
	});
</script>
<form method="post" id="modifyPoolForm"
	action="${basePath}/cluster/pool/modifysave">
	<div class="main_Receipt_table" id="base">
		<div class="main_Receipt_table_m">
			<table border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<th style="width: 35%;" scope="row"><@spring.message
							code='pool.name'/><span class="color_red"></span>
						</th>
						<td style="width: 85%;"><input type="text" id="poolname"
							name="poolName" value="${PoolDetail.poolName}"
							readonly="readonly" style="background: #CCCCCC" /></td>
					</tr>

					<tr>
						<th style="width: 35%;" scope="row"><@spring.message
							code='pool.pg.count'/><span class="color_red"></span>
						</th>
						<td style="width: 85%;"><input type="text" id="pg_num"
							name="pg_num" value="${PoolDetail.pg_num}" readonly="readonly"
							style="background: #CCCCCC" /></td>
						<!--<td style="width: 85%;"><select
							style="width: 54%; height: 24px;" name="pg_num"
							value="${PoolDetail.pg_num}"> <#assign num = [512,
								1024, 2048, 4096, 8192, 16384]> <#list num as x> <#if
								x=="${PoolDetail.pg_num}">
								<option selected>${x}</option> <#elseif x_has_next>
								<option>${x}</option> </#if> </#list>
						</select></td>-->
					</tr>
					<tr>
						<th style="width: 35%;" scope="row"><@spring.message
							code='pool.crush_rule'/><span class="color_red"></span>
						</th>
						<td style="width: 85%;"><select
							style="width: 54%; height: 24px;" id="rule_name"
							name="rule_name" value="${PoolDetail.rule_name}">
								<#list crushRuleInfo as x> <#if x=="${PoolDetail.rule_name}">
								<option selected>${x}</option> <#elseif x_has_next>
								<option>${x}</option> </#if> </#list>
						</select></td>
					</tr>

					<tr>
						<th style="width: 35%;" scope="row"><@spring.message
							code='pool.replication.factor'/><span class="color_red"></span>
						</th>
						<td style="width: 85%;"><select
							style="width: 54%; height: 24px;" name="size"
							value="${PoolDetail.size}"> <#assign num = 5> <#list
								2..num as x> <#if x=="${PoolDetail.size}">
								<option selected>${x}</option> <#elseif x_has_next>
								<option>${x}</option> </#if> </#list>
						</select></td>
					</tr>

					<tr>
						<th style="width: 35%;" scope="row"><@spring.message
							code='pool.quota'/><span class="color_red"></span>
						</th>
						<td style="width: 85%;"><input type="text" id="quotaMax"
							name="quotamax" value="${PoolDetail.quotaMax}" /> <span
							class="color_red"><@spring.message code='pool.notexceed'/>
								${PoolDetail.max_avail}GB</span></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</form>
